import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'home',
    meta: {
      title:'首页',
      keepAlive: false
    },
    component: () => import('@/views/home')
  },
  {
    path: '/articleH5',
    name: 'articleH5',
    meta: {
      title:'文章',
      keepAlive: true
    },
    component: () => import('@/views/h5/article')
  },
  {
    path: '/articleWeb',
    name: 'articleWeb',
    meta: {
      title:'文章',
      keepAlive: true
    },
    component: () => import('@/views/web/article')
  },
  {
    path: '/articleInfoH5',
    name: 'articleInfoH5',
    meta: {
      title:'文章详情',
      keepAlive: false
    },
    component: () => import('@/views/h5/articleInfo')
  },
  {
    path: '/articleInfoWeb',
    name: 'articleInfoWeb',
    meta: {
      title:'文章详情',
      keepAlive: false
    },
    component: () => import('@/views/web/articleInfo')
  },
  {
    path: '/webarticles',
    name: 'webarticles',
    meta: {
      title:'文章列表',
      keepAlive: false
    },
    component: () => import('@/components/webHome/articles')
  },
]


const router = new VueRouter({
  routes
})

export default router
